const app = getApp();

// 通过id获取用户指定订单
export function getOrderById(state, id) {
  return app.http("wechat/getOrderList", 'GET', {
    state: state,
    id: id
  });
}

// 获取商品列表
export function getPackageList() {
  return app.http('wechat/getPackageList');
}

// 取消订单
export function cancelOrder(param) {
  return app.http('wechat/cancelOrder', 'POST', {
    id: param
  });
}